package com.hzhr.iot.cqgas.ds.dao.statis.example;

import com.hzhr.iot.cqgas.ds.entity.statis.StatisDeviceDataExceptionEntity;
import com.hzhr.iot.cqgas.ds.entity.statis.StatisDeviceDataExceptionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface StatisDeviceDataExceptionDao {
    /**
     *
     * @param example
     */
    int countByExample(StatisDeviceDataExceptionExample example);

    /**
     *
     * @param example
     */
    int deleteByExample(StatisDeviceDataExceptionExample example);

    /**
     * 根据主键删除数据库的记录
     *
     * @param id
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 插入数据库记录
     *
     * @param record
     */
    int insert(StatisDeviceDataExceptionEntity record);

    /**
     *
     * @param record
     */
    int insertSelective(StatisDeviceDataExceptionEntity record);

    /**
     *
     * @param example
     */
    List<StatisDeviceDataExceptionEntity> selectByExample(StatisDeviceDataExceptionExample example);

    /**
     * 根据主键获取一条数据库记录
     *
     * @param id
     */
    StatisDeviceDataExceptionEntity selectByPrimaryKey(Integer id);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExampleSelective(@Param("record") StatisDeviceDataExceptionEntity record, @Param("example") StatisDeviceDataExceptionExample example);

    /**
     *
     * @param record
     * @param example
     */
    int updateByExample(@Param("record") StatisDeviceDataExceptionEntity record, @Param("example") StatisDeviceDataExceptionExample example);

    /**
     *
     * @param record
     */
    int updateByPrimaryKeySelective(StatisDeviceDataExceptionEntity record);

    /**
     * 根据主键来更新数据库记录
     *
     * @param record
     */
    int updateByPrimaryKey(StatisDeviceDataExceptionEntity record);
}